import Vue from 'vue'
import App from './App.vue'
import store from './store/index'
import router from './route/index'
import SvgIcon from '@/components/SvgIcon.vue'
import 'element-ui/lib/theme-chalk/index.css';
import elementUi from 'element-ui';

Vue.use(elementUi)
Vue.config.productionTip = false
Vue.component('SvgIcon', SvgIcon)
// 导入所有svg
function importAll (r) {
  r.keys().forEach(r)
}
importAll(require.context('./assets/images/svg', true, /\.svg$/))
// Vue.prototype.axios = axios
new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')

